package com.sc.passbook.constant;

/**
 * @author sc
 * Created on  2018/8/30
 */
public class Constant {
    public static final String TEMPLATE_TOPIC="merchants-template";
    public static final String TOKEN_DIR="/tmp/token";
    public static final String USED_TOKEN_SUFFIX="_";
    public static final String USE_COUNT_REDIS_KEY="count";


    public class UserTable{
        public static final String TABLE_NAME="pb:user";
        public static final String FAMILY_B="b";
        public static final String NAME="name";
        public static final String AGE="age";
        public static final String GENDER="gender";
        public static final String FAMILY_O="o";
        public static final String PHONE="phone";
        public static final String ADDRESS="address";
    }

    public class PassTemplateTable{
        public static final String TABLE_NAME="pb:passtemplate";
        public static final String FAMILY_B="b";
        public static final String ID="id";
        public static final String TITLE="title";
        public static final String SUMMARY="summary";
        public static final String DESC="desc";
        public static final String HAS_TOKEN="has_token";
        public static final String BACKGROUND="background";
        public static final String FAMILY_C="c";
        public static final String LIMIT="limit";
        public static final String START="start";
        public static final String END="end";
    }

    public class PassTable{
        public static final String TABLE_NAME="pb:pass";
        public static final String FAMILY_I="i";
        public static final String USER_ID="user_id";
        public static final String TEMPLATE_ID="template_id";
        public static final String TOKEN="token";
        public static final String ASSIGNED_DATE="assigned_date";
        public static final String CONSUME_DATE="con_date";
    }

    public class FeedBackTable{
        public static final String TABLE_NAME="pb:feedback";
        public static final String FAMILY_I="i";
        public static final String USER_ID="user_id";
        public static final String TYPE="type";
        public static final String TEMPLATE_ID="template_id";
        public static final String COMMENT="comment";
    }
}
